package com.party.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.party.common.annotation.Excel;
import com.party.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 试卷对象 t_ks
 *
 * @author ruoyi
 * @date 2024-11-09
 */
@Data
@TableName(value = "t_ks")
@EqualsAndHashCode(callSuper = true)
public class TKs extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "试卷名称"
     */
    @Excel(name = "试卷名称")
    private String name;

    /**
     * "图标"
     */
    @Excel(name = "图标")
    private String image;

    /**
     * "考试分类"
     */
    @Excel(name = "考试分类")
    private String type;

    /**
     * "部门"
     */
    @Excel(name = "部门")
    private String deptId;

    /**
     * "岗位Id"
     */
    @Excel(name = "岗位Id")
    private String postId;

    /**
     * "工龄最小值"
     */
    @Excel(name = "工龄最小值")
    private Long glMin;

    /**
     * "工龄最大值"
     */
    @Excel(name = "工龄最大值")
    private Long glMax;

    /**
     * "状态"
     */
    @Excel(name = "状态")
    private String status;

    /**
     * "时间(分钟)"
     */
    @Excel(name = "时间(分钟)")
    private Long times;

    /**
     * "排序号"
     */
    @Excel(name = "排序号")
    private Long orderNum;

    private String delFlag;


    @TableField(exist = false)
    private List<TKsQuestion> quList;


    @TableField(exist = false)
    private List<Long> postList;

    @TableField(exist = false)
    private List<Long> deptList;
    // 岗位名称
    @TableField(exist = false)
    private String postName;
    // 部门名称
    @TableField(exist = false)
    private String deptName;
    // 考试类别
    @TableField(exist = false)
    private String ksTypeName;

    @TableField(exist = false)
    private long currentUserId;

    // 工龄
    @TableField(exist = false)
    private long currentGl;

    // 是否考试过
    @TableField(exist = false)
    private long isKs;
    // 考试数量
    @TableField(exist = false)
    private long ksRecordNum;


    // 考试成绩
    @TableField(exist = false)
    private BigDecimal firstExamScore;
    // 分值
     @TableField(exist = false)
    private BigDecimal score;


     // 1 已考  2 未考  3 重考
    @TableField(exist = false)
    private String ksType;

   @TableField(exist = false)
    private String currDept;
   @TableField(exist = false)
    private String currPost;





}
